<div class="window orange">
        <div class="window-head">
                <a href="/contest" class="window-title">Конкурсы</a>
                <a href="/contest" class="window-link">все</a>
        </div>
        <div class="window-content contest-widget">
            {assign var="expositionImage" value=UploadImageFacade::resolveImagePath($model->image_id, "181x160")}
            <a href="/contest/view/{$model->id}">
            <img src="{$expositionImage}" class="contest-img" />
            </a>
            <a class="contest-title" href="/contest/view/{$model->id}">{$model->name}</a>
            <p>Участников: {$count} чел.</p>
            <p>Дата начала: {$model->from_date|date_format:"%e.%m.%Y"}</p>
            <p>Дата конца: {$model->to_date|date_format:"%e.%m.%Y"}</p>
            {array assign="htmlOptions" class="popup-button orange"}
            {chtmlLink text="<span>Стать участником</span>" url="contest/view/{$model->id}" htmlOptions=$htmlOptions}
        </div>
        <div class="window-bottom-left">
                <div class="window-bottom-right">
                </div>
        </div>
</div>
